import React,{Fragment} from "react";
import './styles/App'
import {Route,Link, Routes} from 'react-router-dom'
import Home from './components/home'
import About from "./components/about"

function App(){
    return (
        <Fragment>
            <h1>这里是一个React APP</h1>
            <ul>
                <li>
                    <Link to="/home">首页</Link>
                    <Link to="/about">关于</Link>
                </li>
            </ul>
            <Routes>
                <Route path="/home" element={<Home/>} />
                <Route path="/about" element={<About/>} />
            </Routes> 
        </Fragment>
    )
}

export default App